#include <reg51.h>
#include "Key_State.h"

#define TH0_DEF 0XFC
#define TL0_DEF 0X18
typedef unsigned int u16;	  
unsigned char timeCount = 0;
 sbit led = P1^3;

void Timer0Init()
{
	TMOD|=0X01;
	TH0=TH0_DEF;
	TL0=TL0_DEF;	
	ET0=1;
	EA=1;
	TR0=1;
}

void Timer0() interrupt 1
{
	TH0=TH0_DEF;	
	TL0=TL0_DEF;
	timeCount ++ ;
}